package com.gitee.andy.rpc.entity;

import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;

public class RpcResponse implements Serializable {

	private static final long serialVersionUID = 8500816011092553708L;

	private long seq;
	private Throwable error;
	private Object result;

	public long getSeq() {
		return seq;
	}

	public void setSeq(long seq) {
		this.seq = seq;
	}

	public Throwable getError() {
		return error;
	}

	public void setError(Throwable error) {
		this.error = error;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

	@Override
	public String toString() {
		ToStringBuilder builder = new ToStringBuilder(this);
		builder.append("seq", seq);
		builder.append("error", error);
		builder.append("result", result);
		return builder.toString();
	}

}
